﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;

namespace TestLinq.Entities
{
    [Table(Name="ChiTietDangNhap")]
    public class DangNhapD
    {
        [Column(IsDbGenerated= true/*field tu dong tang*/, IsPrimaryKey= true)]
        public int ID { get; set; }
        [Column(CanBeNull= false)]
        public string Username { get; set; }
        [Column]
        public string Description { get; set; }
        [Association(ThisKey="Username",OtherKey="Username")]
        public DangNhapInfo DangNhap { get; set; }
    }
}
